<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery-3.2.1.min.js"></script>
    <script src="./timeline.js"></script>
    <style>
        #timeline1-canvas {
            display: flex;
            justify-content: center;
            width: 100%;
            color: red;
            opacity: 1;
        }
    </style>
</head>

<body>
    <div id="timeline1-canvas"></div>
</body>
<script>
    let timeline = new Timeline({
        con: $("#timeline1-canvas"),
        begintime: 0,
        timeArr: 0
    });
    timeline.on("start", time => {
        console.log(time, 'time');
    })
</script>

</html>